package com.huaxin.hxmodulesystem.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.huaxin.hxmodulesystem.dto.ResponseResult;
import com.huaxin.hxmodulesystem.dto.request.AddSysDictionaryReqDTO;
import com.huaxin.hxmodulesystem.dto.request.UpdateSysDictionaryReqDTO;
import com.huaxin.hxmodulesystem.models.SysDictionary;

import java.util.List;

public interface SysDictionaryService extends IService<SysDictionary> {
    //添加字典
    ResponseResult<Boolean> addSystemDict(AddSysDictionaryReqDTO in);

    //修改字典
    ResponseResult<Boolean> updateSystemDict(UpdateSysDictionaryReqDTO in);

    //删除字典
    ResponseResult<Boolean> deleteSystemDict(String dictKey);

    //查询字典
    ResponseResult<List<SysDictionary>> querySystemDict(String dictType);

    //根据key查询字典数据
    SysDictionary querySystemDictByKey(String dictKey);
}